import { defineStore } from "pinia";

const useStore = defineStore("transfer", {
  // id: "transfer",
  state: () => ({
    filter: {
      ignoreInnerTransfer: true,
      selectedSectors: [],
      selectedModes: "向北,向北",
    },
    source: [],
    raw: [],
    card: [],
    table: { out: [], in: [] },
    activeTab: "card",
  }),
  getters: {},
  actions: {
    setData(payload) {
      this[payload.key] = JSON.parse(JSON.stringify(payload.data));
    },
  },
});

export default useStore;
